package com.ccrfid.rmc6.repository.toolcase;

import com.ccrfid.rmc6.entity.toolcase.ToolCaseEntity;
import com.ccrfid.rmc6.repository.search.SearchableRepository;
import org.springframework.data.repository.Repository;

public interface ToolCaseRepository extends Repository<ToolCaseEntity, Long>, SearchableRepository<ToolCaseEntity> {

    ToolCaseEntity getById(Long id);

    ToolCaseEntity getByCardNumber(Long cardNumber);

    ToolCaseEntity save(ToolCaseEntity entity);

    Boolean existsById(Long id);

    Boolean existsByCardNumber(Long cardNumber);

    void deleteById(Long id);
}
